<?php
$moduleName   = $invokeParams['moduleName'];
$formDialogId = WacModuleHelper::getFormDialogId($invokeParams['moduleName']);
$formId       = WacModuleHelper::getFormId($invokeParams['moduleName']);

echo "<script type=\"text/javascript\" src=\"/js/backend/{$invokeParams['moduleName']}/".WacControlTableType::$moduleForm.".js\">";
echo "</script>";
echo "<div id=\"".$formDialogId."\" class=\"ui-widget\" style=\"display: none\" >\n\n";
?>
<!-- form, begin-->
<form action="#" name="<?php echo $formId;?>" id="<?php echo $formId;?>" method="post" class="wacFormA">
    <div class="wacFormFirstCol">
        <h3>
            <?php
            echo $invokeParams['caption'];
            ?>
        </h3>
        <div class="wacFormContentA">
            <div class="wacFormRow">
                <div class="wacFormItemLeft ">编号</div>
                <div class="wacFormItemRight">
                    <input name="code" id="<?php echo $moduleName; ?>_code" type="text" class="validate[required,custom[noSpecialCaracters]] wacFormText DataTD ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">生产单号</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName; ?>_production_order_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">后整厂</div>
                <div class="wacFormItemRight">
                    <div id="<?php echo $moduleName; ?>_supplier_id"></div>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">货物单位</div>
                <div class="wacFormItemRight">
                    <select name="goods_amount_unit_code" id="<?php echo $moduleName; ?>_goods_amount_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">开始日</div>
                <div class="wacFormItemRight">
                    <input name="start_date" id="<?php echo $moduleName; ?>_start_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">起货日</div>
                <div class="wacFormItemRight">
                    <input name="delivery_date" id="<?php echo $moduleName; ?>_delivery_date" type="text" class="validate[required,custom[date]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>
    </div>
    <div class="wacFormSecondCol" style="margin-right: 1px; margin-left: -35px; width:320px;">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA" >
            <div class="wacFormRow">
                <div class="wacFormItemLeft wacFormItemLeftSmall">组织</div>
                <div class="wacFormItemRight">
                    <input name="texture" id="<?php echo $moduleName ?>_texture" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft wacFormItemLeftSmall">横缩</div>
                <div class="wacFormItemRight">
                    <input name="horizontal_shrink" id="<?php echo $moduleName ?>_horizontal_shrink" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft wacFormItemLeftSmall">直缩</div>
                <div class="wacFormItemRight">
                    <input name="vertical_shrink" id="<?php echo $moduleName ?>_vertical_shrink" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft wacFormItemLeftSmall">PH值</div>
                <div class="wacFormItemRight">
                    <input name="ph_value" id="<?php echo $moduleName ?>_ph_value" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            
            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_is_fire">烧毛</label>
                    <input name="is_fire" id="<?php echo $moduleName; ?>_is_fire" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                     <label for="<?php echo $moduleName; ?>_is_onstarch">上浆</label>
                    <input name="is_onstarch" id="<?php echo $moduleName; ?>_is_onstarch" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>

            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_is_offstarch">退浆</label>
                    <input name="is_offstarch" id="<?php echo $moduleName; ?>_is_offstarch" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                     <label for="<?php echo $moduleName; ?>_is_water">清水</label>
                    <input name="is_water" id="<?php echo $moduleName; ?>_is_water" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>

            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_is_silk">丝光</label>
                    <input name="is_silk" id="<?php echo $moduleName; ?>_is_silk" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                     <label for="<?php echo $moduleName; ?>_is_beveled">拉斜</label>
                    <input name="is_beveled" id="<?php echo $moduleName; ?>_is_beveled" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>

            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_is_anti_shrink">防缩</label>
                    <input name="is_anti_shrink" id="<?php echo $moduleName; ?>_is_anti_shrink" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                     <label for="<?php echo $moduleName; ?>_is_heat_set">热定型</label>
                    <input name="is_heat_set" id="<?php echo $moduleName; ?>_is_heat_set" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>

            <div class="wacFormRow">
                <div class="wacFormItemPeer">
                    <label for="<?php echo $moduleName; ?>_is_shrink">收缩</label>
                    <input name="is_shrink" id="<?php echo $moduleName; ?>_is_shrink" checked="true" value="1" type="checkbox" class="ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormItemPeer">
                </div>
                <div class="wacFormClear"></div>
            </div>

        </div>

    </div>

    <div class="wacFormThirdCol" style="margin-right: 1px; margin-left: -35px;">
        <h3>&nbsp;</h3>
        <div class="wacFormContentA wacFormContentSmall">
            <div class="wacFormRow">
                <div class="wacFormItemLeft">布幅</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="roll" id="<?php echo $moduleName ?>_roll" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">布幅单位</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <select name="roll_unit_code" id="<?php echo $moduleName ?>_roll_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">包装</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="wrap" id="<?php echo $moduleName ?>_wrap" type="text" class="wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">包装单位</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <select name="wrap_unit_code" id="<?php echo $moduleName ?>_wrap_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">测试数量</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <input name="test_cloth_number" id="<?php echo $moduleName ?>_test_cloth_number" type="text" class="validate[required,custom[onlyDigit]] wacFormText ui-widget-content ui-corner-all" />
                </div>
                <div class="wacFormClear"></div>
            </div>
            <div class="wacFormRow">
                <div class="wacFormItemLeft">测试数量单位</div>
                <div class="wacFormItemRight wacFormItemRightSmall">
                    <select name="test_cloth_unit_code" id="<?php echo $moduleName ?>_test_cloth_unit_code" style="width: 195px">
                        <option></option>
                    </select>
                </div>
                <div class="wacFormClear"></div>
            </div>
        </div>

    </div>

    <div class="wacFormClear"></div>
    <div class="wacFormBottom" align="center">

        <hr class="wacFormRuler" style="width:850px; float:inherit;" />
        <div class="wacFormRow">
            <div class="wacFormItemLeft">备注</div>
            <div class="wacFormItemRight">
                <textarea name="memo" id="<?php echo $moduleName; ?>_memo" class="ui-widget-content ui-corner-all" cols="108" rows="4"></textarea></div>
            <div class="wacFormClear"></div>
        </div>
        <div class="wacFormClear"></div>
        <input name="btnSubmit" id="<?php echo $moduleName; ?>_btnSubmit" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="提交" />
        &nbsp;&nbsp;
        <input name="btnClose" id="<?php echo $moduleName; ?>_btnClose" class="ui-button ui-state-default ui-corner-all wacCursor" type="button" value="关闭" />
    </div>

    <input type="hidden" name="id" id="<?php echo $moduleName; ?>_id" value="0">
</form>
<!-- form, end-->
<?php echo "</div>"; ?>